public class Test {


    public static void funcction() throws ArrayIndexOutOfBoundsException {
        int[] arr = {1, 2, 3};
        System.out.println(arr[100]);
    }

    public static void main(String[] args) {
        try {
            funcction();
        } catch (ArrayIndexOutOfBoundsException e) {

        } finally {

        }


    }
}